#include <stdio.h>
#include <stdlib.h>
#include "rk_debug.h"
#include "rk_defines.h"
#include "opencv2/opencv.hpp"


using namespace cv;

int main(int argc,  char **argv)
{
    cv::Mat img = cv::imread("/data/test.jpg", CV_LOAD_IMAGE_COLOR);
    if(img.empty())
    {
        printf("=====load failed===\n");
    }
    cv::Mat gray_image;
    cv::cvtColor(img, gray_image, cv::COLOR_BGR2GRAY);
    cv::imwrite("/data/out.jpg", gray_image);
    printf("===end ==\n");



    return 0;
}